@mixin bg-common {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50%;
}

@mixin input-common {
  position: absolute;
  box-sizing: border-box;
  display: block;
  width: 346px;
  height: 22px;
  padding: 0 .2em;
  line-height: 22px;
  font-size: 12px;
  text-align: left;
  border: 1px solid #eee;
}

.preview {
  .size-qixishu-250X250 {
    .el-dialog--small {
      width: 1000px;
    }
    .preview_comtent {
      width: 450px;
      height: 450px;
      margin: 0 auto;
    }
    .img_style_0_1 {
      display: block;
      width: 290px;
      height: 228px;
      margin: 68px auto 0;
      @include bg-common;
    }
    .text_style_0_1 {
      display: block;
      text-align: center;
      line-height: 1;
      color: #8b682a;
      margin-top: 30px;
      font-size: 28px;
      overflow: hidden;
    }
    .text_style_0_2 {
      display: block;
      text-align: center;
      font-weight: 400;
      font-size: 20px;
      color: #adadad;
      line-height: 1;
      margin-top: 24px;
      overflow: hidden;
    }
    .style_type_0 .page_num {
      display: none;
    }
    .odd.style_type_0 {
      > * {
        display: none;
      }
      .title {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        background: #000;
      }
    }
    // 版式1 -------------
    .img_style_1_1 {
      display: block;
      width: 94%;
      height: 90%;
      margin: 16px auto 0;
    }
    // 版式2 -------------
    .img_style_2_1 {
      display: block;
      width: 346px;
      height: 346px;
      margin: 20px auto 0;
    }
    .text_style_2_1 {
      bottom: 30px;
      left: 51px;
      @include input-common;
      //text-align: center;
    }
    // 版式3 -------------
    .img_style_3_1 {
      display: block;
      width: 94%;
      height: 358px;
      margin: 40px auto 0;
    }
    // 版式4 -------------
    .img_style_4_1 {
      position: absolute;
      bottom: 30px;
      left: 3%;
      display: block;
      width: 94%;
      height: 300px;
    }
    .text_style_4_1 {
      top: 82px;
      left: 51px;
      @include input-common;
      overflow: initial;
      &:before {
        content: '';
        display: block;
        position: absolute;
        top: -70px;
        left: 70px;
        width: 160px;
        height: 70px;
        background: url('http://image2.artup.com/static/pc/qixishu/tempng/tem_02.png') no-repeat;
        background-size: 100% 100%;
      }
    }
    // 版式5 -------------
    .img_style_5_1 {
      position: absolute;
      bottom: 30px;
      left: 3%;
      display: block;
      width: 90%;
      height: 344px;
      &:before {
        content: '';
        display: block;
        position: absolute;
        top: -60px;
        width: 72px;
        height: 52px;
        background: url("http://image2.artup.com/static/pc/qixishu/tempng/tem_06.png") no-repeat;
        background-size: 100%;
      }
    }
    // 版式6 -------------
    .img_style_6_1 {
      position: absolute;
      left: 20%;
      top: 120px;
      display: block;
      width: 60%;
      height: 192px;
      &:before {
        content: '';
        width: 114px;
        height: 50px;
        position: absolute;
        top: -80px;
        left: 78px;
        background: url("http://image2.artup.com/static/pc/qixishu/tempng/tem_03.png") no-repeat;
        background-size: 100%;

      }
    }
    .text_style_6_1 {
      @include input-common;
      width: 32%;
      height: 50px;
      left: 34%;
      bottom: 40px;
    }
    // 版式7 -------------
    .img_style_7_1 {
      display: block;
      width: 64%;
      height: 398px;
      margin: 20px 0 0 8%;
    }
    .text_style_7_1 {
      @include input-common;
      width: 19%;
      right: 20px;
      bottom: 30px;
    }
    // 版式8 -------------
    .img_style_8_1 {
      display: block;
      width: 64%;
      height: 398px;
      margin: 20px 0 0 8%;
    }
    .text_style_8_1 {
      @include input-common;
      width: 19%;
      height: 26px;
      right: 20px;
      bottom: 30px;
      &:before {
        content: '';
        display: block;
        position: absolute;
        width: 50px;
        height: 25px;
        top: -40px;
        margin-left: -7px;
        background: url("http://image2.artup.com/static/pc/qixishu/tempng/tem_04.png") no-repeat;
        background-size: 100%;
      }
    }
    // 版式9 -------------
    .img_style_9_1 {
      position: absolute;
      top: 30px;
      left: 3%;
      display: block;
      width: 94%;
      height: 300px;
    }
    .text_style_9_1 {
      bottom: 70px;
      left: 50px;
      @include input-common;
      width: 220px;
      &:before {
        content: '';
        display: block;
        position: absolute;
        left: -40px;
        width: 30px;
        height: 22px;
        background: url("http://image2.artup.com/static/pc/qixishu/tempng/tem_14.png") no-repeat;
        background-size: 100%;
      }
    }
    // 版式10 -------------
    .img_style_10_1 {
      position: absolute;
      top: 30px;
      left: 3%;
      display: block;
      width: 94%;
      height: 300px;
    }
    .text_style_10_1 {
      bottom: 40px;
      right: 40px;
      @include input-common;
      width: 220px;
      &:before {
        content: '';
        display: block;
        position: absolute;
        right: -28px;
        width: 12px;
        height: 23px;
        background: url("http://image2.artup.com/static/pc/qixishu/tempng/tem_15.png") no-repeat;
        background-size: 100%;
      }
    }
    // 版式11 -------------
    .img_style_11_1 {
      position: absolute;
      top: 20px;
      right: 20px;
      display: block;
      width: 58%;
      height: 344px;
      &:before {
        content: '';
        display: block;
        position: absolute;
        width: 420px;
        height: 45px;
        left: -140px;
        bottom: -58px;
        background: url("http://image2.artup.com/static/pc/qixishu/tempng/tem_09.png") no-repeat;
        background-size: 100%;
      }
    }
    // 版式12 -------------
    .img_style_12_1 {
      position: absolute;
      top: 20px;
      left: 20px;
      display: block;
      width: 58%;
      height: 344px;
      &:after {
        content: '';
        position: absolute;
        bottom: -27px;
        width: 317px;
        left: -19px;
        height: 0;
        border: 1px dashed #eb838a;
      }
      &:before {
        content: '';
        display: block;
        position: absolute;
        width: 93px;
        height: 230px;
        right: -128px;
        bottom: -31px;
        background: url("http://image2.artup.com/static/pc/qixishu/tempng/tem_16.png") no-repeat;
        background-size: 100% 100%;
      }
    }
    // 版式13 -------------
    .img_style_13_1 {
      position: absolute;
      left: 20%;
      top: 92px;
      display: block;
      width: 60%;
      height: 270px;
      border-radius: 6px;
      &:before {
        content: '';
        width: 114px;
        height: 50px;
        position: absolute;
        top: -66px;
        left: 78px;
        background: url("http://image2.artup.com/static/pc/qixishu/tempng/tem_11.png") no-repeat;
        background-size: 100%;
      }
    }
    .text_style_13_1 {
      @include input-common;
      width: 32%;
      left: 34%;
      bottom: 40px;
    }
    // 版式14 -------------
    .style_type_14 {
      background: #fff url("http://image2.artup.com/static/pc/qixishu/tempng/tem_13.png") no-repeat;
      background-size: 100% 110%;
      background-position-x: 4px;
      background-position-y: -12px;
    }
    .img_style_14_1 {
      position: absolute;
      left: 20%;
      top: 80px;
      display: block;
      width: 62%;
      height: 279px;
      border-radius: 6px;
    }
    // 版式15 -------------
    .img_style_15_1 {
      display: block;
      width: 56%;
      height: 366px;
      margin: 20px auto 0;
    }
    .text_style_15_1 {
      bottom: 30px;
      left: 90px;
      @include input-common;
      width: 252px;
      text-align: center;
    }
    // 版式16 -------------
    .img_style_16_1 {
      display: block;
      width: 365px;
      height: 346px;
      margin: 20px auto 0;
    }
    .text_style_16_1 {
      bottom: 30px;
      left: 20px;
      @include input-common;
    }
    // 版式17 -------------
    .img_style_17_1 {
      display: block;
      width: 365px;
      height: 346px;
      margin: 20px auto 0;
    }
    .text_style_17_1 {
      bottom: 30px;
      right: 20px;
      @include input-common;
    }
    // 版式18 -------------
    .img_style_18_1, .img_style_18_2 {
      position: absolute;
      display: block;
      width: 45%;
      height: 346px;
      left: 20px;
      top: 40px;
    }
    .img_style_18_2 {
      left: auto;
      right: 20px;
    }
    // 版式19 -------------
    .img_style_19_1, .img_style_19_2 {
      position: absolute;
      display: block;
      width: 33%;
      height: 190px;
      left: 20px;
      top: 20px;
    }
    .img_style_19_2 {
      top: auto;
      bottom: 40px;
      &:before {
        content: '';
        width: 230px;
        height: 385px;
        position: absolute;
        right: -250px;
        top: -179px;
        background: url("http://image2.artup.com/static/pc/qixishu/tempng/tem_10.png") no-repeat;
        background-size: 100%;
      }
    }
    // 版式20 -------------
    .img_style_20_1, .img_style_20_2, .img_style_20_3, .img_style_20_4 {
      position: absolute;
      width: 30%;
      height: 135px;
    }
    .img_style_20_1 {
      top: 80px;
      left: 80px;
    }
    .img_style_20_2 {
      top: 80px;
      right: 80px;
    }
    .img_style_20_3 {
      bottom: 80px;
      left: 80px;
    }
    .img_style_20_4 {
      bottom: 80px;
      right: 80px;
    }
    .img_style_100_1 {
      display: block;
      width: 158px;
      height: 158px;
      margin: 146px;
    }
    // 版式21 -------------
    .img_style_21_1, .img_style_21_2, .img_style_21_3, .img_style_21_4, .img_style_21_5, .img_style_21_6 {
      position: absolute;
      width: 29%;
      height: 173px;
    }
    .img_style_21_1 {
      top: 20px;
      left: 20px;
    }
    .img_style_21_2 {
      top: 20px;
      left: 160px;
    }
    .img_style_21_3 {
      top: 20px;
      right: 20px;
    }
    .img_style_21_4 {
      top: 202px;
      left: 20px;
    }
    .img_style_21_5 {
      top: 202px;
      left: 160px;
    }
    .img_style_21_6 {
      top: 202px;
      right: 20px;
    }
    .text_style_21_1 {
      bottom: 38px;
      left: 62px;
      @include input-common;
      width: 266px;
      &:before {
        content: '';
        width: 350px;
        height: 30px;
        position: absolute;
        left: -64px;
        top: 5px;
        background: url("http://image2.artup.com/static/pc/qixishu/tempng/tem_05.png") no-repeat;
        background-size: 100%;
      }
    }
    // 版式21 -------------
    .text_style_22_1 {
      top: 120px;
      left: 50px;
      @include input-common;
      height: 160px;
      overflow: initial;
    }
    .text_style_22_1:before {
      position: absolute;
      top: -58px;
      left: 120px;
      content: '';
      display: block;
      width: 100px;
      height: 42px;
      background: url("http://image2.artup.com/static/pc/qixishu/tempng/tem_17.png") no-repeat;
      background-size: auto 100%;
    }
    .style_type_100 {
      .title, .page_num {
        display: none;
      }
    }
  }
}
